package com.edu.neusoft.cookbook.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 存储食谱信息的表(Recipes)表实体类
 *
 * @author makejava
 * @since 2024-12-07 11:35:11
 */
@Data
public class Recipes extends Model<Recipes> {
    //食谱的唯一标识符
    @TableId
    private Integer recipeId;
    //食谱的标题
    private String title;
    //食谱的简短描述或背景信息
    private String description;
    //烹饪时间（分钟）
    private Integer cookTime;
    //所需配料的列表，可以用逗号分隔或JSON格式
    private String ingredients;
    //烹饪步骤的详细说明
    private String instructions;
    //食谱所属分类的ID
    private Integer categoryId;

    private Integer commentId;

    public Integer getRecipeId() {
        return recipeId;
    }

    public void setRecipeId(Integer recipeId) {
        this.recipeId = recipeId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getCookTime() {
        return cookTime;
    }

    public void setCookTime(Integer cookTime) {
        this.cookTime = cookTime;
    }

    public String getIngredients() {
        return ingredients;
    }

    public void setIngredients(String ingredients) {
        this.ingredients = ingredients;
    }

    public String getInstructions() {
        return instructions;
    }

    public void setInstructions(String instructions) {
        this.instructions = instructions;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }


}

